package com.android.tnovoselec.schedule.activity;

import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.android.tnovoselec.schedule.fragment.ItemDetailsFragment;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

public class ItemDetailsActivity extends SherlockFragmentActivity {

	private int itemID;

	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		Bundle extras = getIntent().getExtras();
		if (extras != null){
			itemID = extras.getInt("itemID");
		}
		ItemDetailsFragment idf = new ItemDetailsFragment();
		idf.setArguments(extras);
		getSupportFragmentManager().beginTransaction().add(android.R.id.content, idf).commit();
	}

}
